/**
 * Created By: sisopipo Project Team
 * Created Date: Feb 25, 2011
 */
package com.sisopipo.assetsportal.webui.action;

import java.util.Date;

import com.sisopipo.assetsportal.context.IAppSessionContext;
import com.sisopipo.assetsportal.security.domain.User;
import com.sisopipo.core.controller.struts.action.ActionSupportEx;

public class BaseAction extends ActionSupportEx {

	private static final long serialVersionUID = 1L;

	protected String pageTitle;

	public final User getCurUser() {
		return ((IAppSessionContext) sessionContext).getUser();
	}

	public final String getCopyRight() {
		return getText("page_copyright_sisopipo");
	}

	public final String getPageTitle() {
		return getText(pageTitle);
	}

	public void setPageTitle(String pageTitle) {
		this.pageTitle = pageTitle;
	}

	public Date getCurrDate() {
		return new Date();
	}
}
